package com.yhgm.controller;

import com.yhgm.service.impl.UserLogServiceImpl;
import com.yhgm.utils.R;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("userLog")
public class UserLogController {
    @Resource
    private UserLogServiceImpl userLogService;
    @GetMapping("getAll")
    public R getAll(Integer code, String msg, Integer page, Integer size){
        return userLogService.getAll(code,msg,page,size);
    }
    @DeleteMapping("clear")
    public R clear(){
        return userLogService.clear();
    }
    @DeleteMapping("clearThreeMonth")
    public R clearThreeMonth(){
        return userLogService.clearThreeMonth();
    }
}
